/*
 * @Author: error: git config user.name && git config user.email & please set dead value or install git
 * @Date: 2022-08-11 17:22:03
 * @LastEditors: error: git config user.name && git config user.email & please set dead value or install git
 * @LastEditTime: 2022-09-15 15:39:08
 * @FilePath: \project\pyy\src\http\modules\demand.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import axios from '@/utils/axios.js'
import {
    DEMAND_LIST,
    DEMAND_ADD,
    DEMAND_DETAILS
} from '../apiUrl'
export default {
    // 获取需求列表
    getList(params) {
        return axios({
            url: DEMAND_LIST,
            method: 'post',
            data: params
        })
    },
    // 需求收集
    addDemand(data) {
        return axios({
            url: DEMAND_ADD,
            method: 'post',
            data
        })
    },
    // 需求详情
    getDemandById(params) {
        return axios({
            url: DEMAND_DETAILS,
            method: 'post',
            data: params
        })
    },
    // 需求单位
    getDemandUnit() {
        return axios({
            url: 'webjars/denamde/allDenamde',
            method: 'get',
       
        })
    },
}